/**
 * Created by renzhiqiang on 17/7/27.
 */
import React ,{Component, PropTypes, PureComponent} from "react";
import ReactDom from 'react-dom';
class MyComponent extends PureComponent {
    constructor(props){
        super(props);
        console.info(props)
        this.state = {
            loopsRemaining: "this.props.m111ax1111111Loops,"
        };
    }

    componentWillMount () {
        this.setState({loopsRemaining:"aaaaaa"});


        console.info('111111');
    }
    aaa(a) {
        console.info('1111');
    }
    render () {
        return (<div onClick={this.aaa}>ES6</div>)
    };
}
MyComponent.propTypes = {
    title: PropTypes.string.isRequired
};//验证不生效
module.exports = MyComponent;